home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 1 / Gold Medal Software Volume 1 (Gold Medal) (1994).iso / menuts / automenu.arj / DOS.MDF < prev    next >
Text File  |  1993-09-10  |  6KB  |  206 lines

  1. ...............................................................................
  2. .Automenu DOS Menu Example
  3. .By Marshall W. Magee
  4. .Updated last on 07/09/90
  5. ...............................................................................
  6. %AUTOMENU(R) Simple DOS Menu
  7. .................................................
  8. *Perform DOS Check Disk  (CHKDSK)
  9. ?Print information about disk
  10. >Enter Drive you wish to do a Check Disk of:
  11. >       For Example: Enter 'A:' to check drive A:
  12. >
  13. <
  14. >
  15. >Now Performing a CHECK DISK of Drive -> %1
  16. >
  17. >
  18. =CHKDSK %1
  19. .................................................
  20. *Print Directory Listing to Screen
  21. ?List filenames on Disk to the Console
  22. >Select Drive you wish to see the Directory of:
  23. <A:\,B:\,C:\,D:\
  24. >
  25. >Type the directory to display.
  26. <
  27. >Select Directory command option:
  28. >
  29. >       /W      This option prints filenames across screen
  30. >       /P      This option will pause when screen fills
  31. >       /W/P    This option is a combination of the above two options
  32. >
  33. </W,/P,/W/P
  34. >
  35. >Now Listing Files on Drive -> %1 With Option -> %2
  36. =DIR %1%2 %3
  37. .................................................
  38. *Execute ANY Valid DOS Command
  39. >Enter any DOS Command and Press Return (ESC to return to Menu)
  40. <
  41. >........... Now  Executing    >>  %1
  42. >
  43. >
  44. >
  45. =%1
  46. .................................................
  47. *Select a DOS Command
  48. ?Pick From A List Of DOS Commands to be Executed
  49. >Choose any of the DOS Commands below and Press Return (ESC to return to Menu)
  50. >
  51. <DIR,CD,PATH,CHKDSK,VER,SET,TIME,DATE
  52. >
  53. >.............Now  Executing    >>  %1
  54. =%1
  55. .................................................
  56. *Print File
  57. ?Print the contents of file(s) to LPT1
  58. >Type the file name and directory to print.
  59. >If you have multiple files to print type them in line by line
  60. >(ex. c:\automenu\auto.bat)
  61. <
  62. <
  63. <
  64. <
  65. <
  66. <
  67. <
  68. <
  69. +print %1 %2 %3 %4 %5 %6 %7 %8
  70. +auto
  71. *Return to Main Menu
  72. ?Will Exit to Main Menu
  73. @automenu.MDF
  74. .................................................
  75. *Return to Main (custom) Menu
  76. ?menu.mdf
  77. @menu.mdf
  78. %AUTOMENU(R) Common DOS Functions
  79. .................................................
  80. *Copy a file to another disk drive
  81. ?Copy a file
  82. >Enter FILENAME to be copied  (Press ESC to Quit)
  83. >       For Example:    TEST.DAT
  84. >                       C:SAM.*
  85. <
  86. >Select which DRIVE to copy it to:
  87. <A:,B:,C:,D:
  88. >
  89. >Now copying file %1 TO %2
  90. -COPY %1 %2
  91. .................................................
  92. *Move a File to Another Disk Drive
  93. ?Move One or More Files
  94. >This option will copy files to a new location and erase old files
  95. >
  96. >
  97. >
  98. >Enter filespec to be moved  (Press ESC to Quit)
  99. >       For Example:    TEST.DAT  or C:TEST.DAT
  100. >                or:    *.DOC     or B:*.TXT
  101. >
  102. <
  103. >Select which DRIVE to move TO:
  104. <A:,B:,C:,D:,E:
  105. >
  106. >Now moving file(s)  %1 TO  %2
  107. !COPY %1 %2 > NUL
  108. !DEL %1
  109. .................................................
  110. *Delete a File
  111. ?Erase a file   (Password = "OK")
  112. ^OK
  113. >Enter Filename to be ERASED  (Press ESC to Quit)
  114. >       For Example:    TEST.DAT  or C:TEST.DAT
  115. >
  116. <
  117. +ERASE %1
  118. +ECHO FILE %1 Has Been Erased - To Return to Menu,
  119. +PAUSE
  120. +AUTO DOS.MDF
  121. .................................................
  122. *Rename a File
  123. ?Change the Name of a File
  124. >Enter OLD FILENAME to be Renamed  (Press ESC to Quit)
  125. >       For Example:    TEST.DAT  or D:TEST.DAT
  126. >
  127. <
  128. >Enter NEW Filename  -  Without Drive specified.
  129. >
  130. <
  131. +ECHO OFF
  132. +CLS
  133. +REN %1 %2 > NUL
  134. +ECHO Old File %1 Renamed to %2 
  135. +ECHO To Return to Menu,
  136. +PAUSE
  137. +AUTO DOS.MDF
  138. .................................................
  139. *Format a Floppy Diskette in Drive B: P/W = "BOB"
  140. ?Format disk in Drive B: using "FORMAT B:"
  141. ^BOB
  142. !FORMAT B:
  143. !cd\automenu
  144. ....................................................
  145. *Format Boot Disk in Drive B: Password = "BOB"
  146. ?Format Disk in Drive B: Using "FORMAT B:/S/V"
  147. ^BOB
  148. .FORMAT B:/S/V
  149. =ECHO FORMAT Example is disabled, Modify DOS.MDF to Activate
  150. .................................................
  151. *Return to Main Menu
  152. ?Will Exit to the Main Menu
  153. @automenu.MDF
  154. .................................................
  155. *Return to Main (custom) Menu
  156. ?menu.mdf
  157. @menu.mdf
  158. %AUTOMENU(R) DOS Backup Menu
  159. .................................................
  160. *Format A Diskette in Drive A:
  161. ?Prepare a Disk in Drive A:
  162. =ECHO FORMAT Example is disabled, Modify DOS.MDF to Activate
  163. .FORMAT A:
  164. .................................................
  165. *Backup of Disk
  166. ?Perform Backup of ALL Files in selected directory
  167. >This command will backup all all files without removing any info on the disk.
  168. >Select the drive letter to use.
  169. <c:\, d:\
  170. >Type the directory to use. (automenu, nc)
  171. <
  172. >Select the drive letter to backup to.
  173. <A:, B:
  174. >Choose any of the extensions below to type in (/s /m /a) Use next line if needed
  175. >/S Backs up subdirectories, /M Backs up files that changed since the last backup
  176. >/A Dosn't remove any files from disk during backup, /F:size size in Mb 
  177. <
  178. +backup %1%2\*.* c: %4  /L:c:\catalog\%2.cat
  179. >
  180. +mkdir b:\%2
  181. +attrib -r c:\*.001
  182. +copy c:\*.001 b:\%2 
  183. +copy c:\catalog\%2.cat b:\%2
  184. +c:
  185. +cd\automenu
  186. +auto
  187. *Update Backup
  188. ?Perform backup of new files since last backup
  189. >Select the drive to use. 
  190. <c:\, d:\
  191. >Type the directory to use. (automenu, nc)
  192. <
  193. >Type the drive letter to backup to. 
  194. <A:, B:
  195. >Would you like no files to be removed from the disk while backup (/a)
  196. </a, 
  197. !BACKUP %1%2\ %3 /S/M
  198. *Return to Main Menu
  199. ?Will Exit to Main Menu
  200. @automenu.MDF
  201. .................................................
  202. *Return to Main (custom) Menu
  203. ?menu.mdf
  204. @menu.mdf
  205. #END OF DOS.MDF
  206.